package com.bjpowernode.security06jwtredismysql.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 后端统一返回结果类型
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private Integer code;//状态码
    private String msg;//返回的消息
    private Object data;//返回的数据

    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
